<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<sx:head/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>石家庄社区检验网--${object.name}</title>
</head>

<body>

<s:action name="listAll"  executeResult="true">
 <s:param name="objectName">InfoType</s:param>
</s:action> 

<sx:div id="div1" cssStyle="float:left;margin-top:8px;margin-bottom:8px;margin-left:50px;">
<table>
<tr><td>标题</td><td>发布时间</td></tr>
<tr><td></td><td></td></tr>
			 <s:iterator value="%{object.infos}" var="var">
			 <tr>
			<s:url id="url0" value="objectShow">
			
             <s:param name="id"><s:property value="id"/></s:param>
             <s:param name="objectName" >Info</s:param>
          </s:url> 
         
       
					
				
					   <td>
						<s:a href="%{url0} " target="_blank"> <s:property value="title"/>	</s:a></td>
							<td>  
					  <s:a href="%{url0} " target="_blank">  <s:property value="dateCreated"/></s:a></td>
					 <%if(session.getAttribute("userRole")!=null&&session.getAttribute("userRole").equals("ROLE_管理员")){ %>
           <td  style="width:150px;text-align:center;">
           <s:url id="url1" value="edit">
			
             <s:param name="id"><s:property value="id"/></s:param>
             <s:param name="objectName" >Info</s:param>
          </s:url> 
				<s:a href="%{url1} " target="_blank">编辑</s:a>
				</td>
              <%}%>
					</tr>
				</s:iterator>
</table>
</sx:div>
</body>
</html>